<!DOCTYPE html>
<html>
<head>
    <title>Excel文件处理</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <div class="container mt-5">
        <h1>Excel文件处理工具</h1>
        {% with messages = get_flashed_messages() %}
          {% if messages %}
            {% for message in messages %}
              <div class="alert alert-danger">{{ message }}</div>
            {% endfor %}
          {% endif %}
        {% endwith %}
        
        <form method="post" enctype="multipart/form-data" class="mt-3">
            <div class="mb-3">
                <label for="file" class="form-label">选择Excel文件</label>
                <input type="file" class="form-control" id="file" name="file" accept=".xlsx,.xls" required>
            </div>
            <div class="mb-3">
                <label for="time_column" class="form-label">时间列（默认为B列）</label>
                <input type="text" class="form-control" id="time_column" name="time_column" value="B" 
                       placeholder="输入列标识（如A、B、C）">
            </div>
            <button type="submit" class="btn btn-primary">上传并处理</button>
        </form>
    </div>
</body>
</html>